const exec = require('child_process').execFile;
const path = ".\Code.exe";
exec(path, function(err, data) { if (err) { throw err; } console.log(data.toString()); }); 
return
var robot = require("robotjs");

//Get the mouse position, retuns an object with x and y. 
var mouse=robot.getMousePos();
console.log("Mouse is at x:" + mouse.x + " y:" + mouse.y);

//Move the mouse down by 100 pixels.
robot.moveMouse(100,120);

//Left click!
robot.mouseClick();
robot.mouseClick();